﻿using SIG.Data;
using SIG.Infrastructure.Cache;
using SIG.Data.UnitOfWork;
using System;
using SIG.Model.Albums;

namespace SIG.Repository
{
    public class PhotoRepository : Repository<Photo>, IPhotoRepository
    {
        IMainBCUnitOfWork _unitOfWork;
        private ICacheService _cacheService;
        public PhotoRepository(IMainBCUnitOfWork unitOfWork, ICacheService cacheService) : base(unitOfWork) {
            if (unitOfWork == (IMainBCUnitOfWork)null)
                throw new ArgumentNullException("unitOfWork");
            if (cacheService == (ICacheService)null)
                throw new ArgumentNullException("cacheService");
            this._unitOfWork = unitOfWork;
            this._cacheService = cacheService;
        }
     

    }
}
